package cn.wolfcode.trip.base.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Setter@Getter
public class QueryObject {

    private Integer currentPage=1;

    private Integer pageSize=5;

    private String keyword;

    private String orderBy;

    public String getKeyword(){
        return StringUtils.hasLength(keyword)?keyword:null;
    }

}
